﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category9
{
  public class MT910 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagChoiceDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagSubItemDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagChoiceDefinition U0081;
    private static SwiftTagDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagChoiceDefinition U0089;
    private static SwiftTagDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagSubItemDefinition U008F;
    private static SwiftTagDefinition U0090;

    [Description("Transaction Reference Number")]
    public Tag20 TransactionReferenceNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0002);
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 Tag20_TransactionReferenceNumber
    {
      get
      {
        return this.TransactionReferenceNumber_20;
      }
    }

    [Description("Related Reference")]
    public Tag21 RelatedReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0004);
      }
    }

    [Description("Related Reference")]
    public Tag21 Tag21_RelatedReference
    {
      get
      {
        return this.RelatedReference_21;
      }
    }

    [Description("Account Identification")]
    public Tag25 AccountIdentification_25
    {
      get
      {
        return new Tag25((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0006);
      }
    }

    [Description("Account Identification")]
    public Tag25 Tag25_AccountIdentification
    {
      get
      {
        return this.AccountIdentification_25;
      }
    }

    [Description("Value Date ,CurrencyCode and Amount")]
    public Tag32A ValueDateCurrencyCodeAmount_32A
    {
      get
      {
        return new Tag32A((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0008);
      }
    }

    [Description("Value Date ,CurrencyCode and Amount")]
    public Tag32A Tag32A_ValueDateCurrencyCodeAmount
    {
      get
      {
        return this.ValueDateCurrencyCodeAmount_32A;
      }
    }

    [Description("Ordering Customer")]
    public Tag50A OrderingCustomer_50A
    {
      get
      {
        return new Tag50A((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0012);
      }
    }

    [Description("Ordering Customer")]
    public Tag50A Tag50A_OrderingCustomer
    {
      get
      {
        return this.OrderingCustomer_50A;
      }
    }

    [Description("Ordering Customer")]
    public Tag50F OrderingCustomer_50F
    {
      get
      {
        return new Tag50F((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0016);
      }
    }

    [Description("Ordering Customer")]
    public Tag50F Tag50F_OrderingCustomer
    {
      get
      {
        return this.OrderingCustomer_50F;
      }
    }

    [Description("Ordering Customer")]
    public Tag50K OrderingCustomer_50K
    {
      get
      {
        return new Tag50K((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U001E);
      }
    }

    [Description("Ordering Customer")]
    public Tag50K Tag50K_OrderingCustomer
    {
      get
      {
        return this.OrderingCustomer_50K;
      }
    }

    [Description("Ordering Institution ")]
    public Tag52A OrderingInstitution_52A
    {
      get
      {
        return new Tag52A((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0082);
      }
    }

    [Description("Ordering Institution ")]
    public Tag52A Tag52A_OrderingInstitution
    {
      get
      {
        return this.OrderingInstitution_52A;
      }
    }

    [Description("Ordering Institution ")]
    public Tag52D OrderingInstitution_52D
    {
      get
      {
        return new Tag52D((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0086);
      }
    }

    [Description("Ordering Institution ")]
    public Tag52D Tag52D_OrderingInstitution
    {
      get
      {
        return this.OrderingInstitution_52D;
      }
    }

    [Description("Intermediary ")]
    public Tag56A Intermediary_56A
    {
      get
      {
        return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U008A);
      }
    }

    [Description("Intermediary ")]
    public Tag56A Tag56A_Intermediary
    {
      get
      {
        return this.Intermediary_56A;
      }
    }

    [Description("Intermediary ")]
    public Tag56D Intermediary_56D
    {
      get
      {
        return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U008D);
      }
    }

    [Description("Intermediary ")]
    public Tag56D Tag56D_Intermediary
    {
      get
      {
        return this.Intermediary_56D;
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT910.U0090);
      }
    }

    [Description("Sender To Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    public MT910()
      : base(true)
    {
    }

    public MT910(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT910.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT910.MessageDefinition = new SwiftMessageDefinition("MT910", "Confirmation of Credit");
      MT910.U0002 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT910.U0002.TagName = ":20:";
      MT910.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT910.U0002.Elements.Add((SwiftDefinitionElement) MT910.U0003);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0002);
      MT910.U0004 = new SwiftTagDefinition("RelatedReference_21", "Related Reference");
      MT910.U0004.TagName = ":21:";
      MT910.U0005 = new SwiftTagSubItemDefinition("Reference", " Reference");
      MT910.U0004.Elements.Add((SwiftDefinitionElement) MT910.U0005);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0004);
      MT910.U0006 = new SwiftTagDefinition("AccountIdentification_25", "Account Identification");
      MT910.U0006.TagName = ":25:";
      MT910.U0007 = new SwiftTagSubItemDefinition("Account", "Account ");
      MT910.U0006.Elements.Add((SwiftDefinitionElement) MT910.U0007);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0006);
      MT910.U0008 = new SwiftTagDefinition("ValueDateCurrencyCodeAmount_32A", "Value Date ,CurrencyCode and Amount");
      MT910.U0008.TagName = ":32A:";
      MT910.U000E = new SwiftTagSubItemDefinition("Date", "Value Date");
      MT910.U0008.Elements.Add((SwiftDefinitionElement) MT910.U000E);
      MT910.U000F = new SwiftTagSubItemDefinition("CurrencyCode", "Currency Code");
      MT910.U0008.Elements.Add((SwiftDefinitionElement) MT910.U000F);
      MT910.U0010 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT910.U0008.Elements.Add((SwiftDefinitionElement) MT910.U0010);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0008);
      MT910.U0011 = new SwiftTagChoiceDefinition("Choice", "");
      MT910.U0011.Mandatory = false;
      MT910.U0011.Multiple = true;
      MT910.U0012 = new SwiftTagDefinition("OrderingCustomer_50A", "Ordering Customer");
      MT910.U0012.TagName = ":50A:";
      MT910.U0012.Mandatory = false;
      MT910.U0013 = new SwiftTagSubItemDefinition("Account", "Account");
      MT910.U0013.Mandatory = false;
      MT910.U0014 = new SwiftTagSubItemDefinition("Account_1", "Account");
      MT910.U0013.Elements.Add((SwiftDefinitionElement) MT910.U0014);
      MT910.U0012.Elements.Add((SwiftDefinitionElement) MT910.U0013);
      MT910.U0015 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT910.U0012.Elements.Add((SwiftDefinitionElement) MT910.U0015);
      MT910.U0011.Elements.Add((SwiftDefinitionElement) MT910.U0012);
      MT910.U0016 = new SwiftTagDefinition("OrderingCustomer_50F", "Ordering Customer");
      MT910.U0016.TagName = ":50F";
      MT910.U0016.Mandatory = false;
      MT910.U0017 = new SwiftTagSubItemDefinition("OrderingCustomerIdentification_1", "Account");
      MT910.U0018 = new SwiftTagSubItemDefinition("Account", "");
      MT910.U0017.Elements.Add((SwiftDefinitionElement) MT910.U0018);
      MT910.U0016.Elements.Add((SwiftDefinitionElement) MT910.U0017);
      MT910.U0019 = new SwiftTagSubItemDefinition("OrderingCustomerIdentification_2", "Ordering Customer Identification");
      MT910.U001A = new SwiftTagSubItemDefinition("TypeOfIdentification", "Type Of Identification");
      MT910.U0019.Elements.Add((SwiftDefinitionElement) MT910.U001A);
      MT910.U001B = new SwiftTagSubItemDefinition("CountryCode", "Country Code");
      MT910.U0019.Elements.Add((SwiftDefinitionElement) MT910.U001B);
      MT910.U001C = new SwiftTagSubItemDefinition("Identification", "Identification");
      MT910.U0019.Elements.Add((SwiftDefinitionElement) MT910.U001C);
      MT910.U0016.Elements.Add((SwiftDefinitionElement) MT910.U0019);
      MT910.U001D = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT910.U0016.Elements.Add((SwiftDefinitionElement) MT910.U001D);
      MT910.U0011.Elements.Add((SwiftDefinitionElement) MT910.U0016);
      MT910.U001E = new SwiftTagDefinition("OrderingCustomer_50K", "Ordering Customer");
      MT910.U001E.TagName = ":50K:";
      MT910.U001E.Mandatory = false;
      MT910.U001F = new SwiftTagSubItemDefinition("Account", "Account");
      MT910.U001F.Mandatory = false;
      MT910.U007F = new SwiftTagSubItemDefinition("Account_1", "Account");
      MT910.U001F.Elements.Add((SwiftDefinitionElement) MT910.U007F);
      MT910.U001E.Elements.Add((SwiftDefinitionElement) MT910.U001F);
      MT910.U0080 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT910.U001E.Elements.Add((SwiftDefinitionElement) MT910.U0080);
      MT910.U0011.Elements.Add((SwiftDefinitionElement) MT910.U001E);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0011);
      MT910.U0081 = new SwiftTagChoiceDefinition("Choice", "");
      MT910.U0081.Mandatory = false;
      MT910.U0081.Multiple = true;
      MT910.U0082 = new SwiftTagDefinition("OrderingInstitution_52A", "Ordering Institution ");
      MT910.U0082.TagName = ":52A:";
      MT910.U0082.Mandatory = false;
      MT910.U0083 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT910.U0083.Mandatory = false;
      MT910.U0082.Elements.Add((SwiftDefinitionElement) MT910.U0083);
      MT910.U0084 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT910.U0082.Elements.Add((SwiftDefinitionElement) MT910.U0084);
      MT910.U0081.Elements.Add((SwiftDefinitionElement) MT910.U0082);
      MT910.U0086 = new SwiftTagDefinition("OrderingInstitution_52D", "Ordering Institution ");
      MT910.U0086.TagName = ":52D:";
      MT910.U0086.Mandatory = false;
      MT910.U0087 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT910.U0087.Mandatory = false;
      MT910.U0086.Elements.Add((SwiftDefinitionElement) MT910.U0087);
      MT910.U0088 = new SwiftTagSubItemDefinition("NameAndAddress", "Name and Address");
      MT910.U0086.Elements.Add((SwiftDefinitionElement) MT910.U0088);
      MT910.U0081.Elements.Add((SwiftDefinitionElement) MT910.U0086);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0081);
      MT910.U0089 = new SwiftTagChoiceDefinition("Choice", "");
      MT910.U0089.Mandatory = false;
      MT910.U0089.Multiple = true;
      MT910.U008A = new SwiftTagDefinition("Intermediary_56A", "Intermediary ");
      MT910.U008A.TagName = ":56A:";
      MT910.U008A.Mandatory = false;
      MT910.U008B = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT910.U008B.Mandatory = false;
      MT910.U008A.Elements.Add((SwiftDefinitionElement) MT910.U008B);
      MT910.U008C = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT910.U008A.Elements.Add((SwiftDefinitionElement) MT910.U008C);
      MT910.U0089.Elements.Add((SwiftDefinitionElement) MT910.U008A);
      MT910.U008D = new SwiftTagDefinition("Intermediary_56D", "Intermediary ");
      MT910.U008D.TagName = ":56D:";
      MT910.U008D.Mandatory = false;
      MT910.U008E = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT910.U008E.Mandatory = false;
      MT910.U008D.Elements.Add((SwiftDefinitionElement) MT910.U008E);
      MT910.U008F = new SwiftTagSubItemDefinition("NameAndAddress", "Name and Address");
      MT910.U008D.Elements.Add((SwiftDefinitionElement) MT910.U008F);
      MT910.U0089.Elements.Add((SwiftDefinitionElement) MT910.U008D);
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0089);
      MT910.U0090 = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender To Receiver Information");
      MT910.U0090.TagName = ":72:";
      MT910.U0090.Mandatory = false;
      MT910.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT910.U0090);
    }
  }
}
